R Markdown

This is an R Markdown(R Core Team 2023) document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

GT Table

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document.

Country Mean Age Maximum BMI Percentage of Death
Female
Brasil 59 38.16 2.3%
Kazakhstan 68 35.78 0.4%
Mexico 59 43.82 2.0%
Spain 58 40.35 2.5%
USA 59 53.01 31.6%
Male
Brasil 62 37.72 3.6%
Kazakhstan 56 34.78 0.4%
Mexico 62 40.96 3.2%
Spain 60 42.83 3.8%
USA 60 60.24 50.1%


We can also mention the result directly in the text, like this: the maximum age in the data is 88.


Including Plots

You can also embed plots, for example:


Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.


Images

knitr::include_graphics("images/scream.jpg")
The Scream, 1893.

The Scream, 1893.


Limitations

  • The only limitation is unlimited resources; you shouldn’t lose yourself in colors, gifs, and spending days shaping your report. Remember to look at your watch sometimes 👀⌚️.


🚀 If you want to dive into a cool protocol paper, check it out here: Mortier et al. (2024), enjoy!



References

Mortier, Philippe, Franco Amigo, Madhav Bhargav, Susana Conde, Montse Ferrer, Oskar Flygare, Busenur Kizilaslan, et al. 2024. “Developing a Clinical Decision Support System Software Prototype That Assists in the Management of Patients with Self-Harm in the Emergency Department: Protocol of the PERMANENS Project.” BMC Psychiatry 24 (1): 220.
R Core Team. 2023. R: A Language and Environment for Statistical Computing. Vienna, Austria: R Foundation for Statistical Computing. https://www.R-project.org/.